package com.ruoyi.bom.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.bom.domain.TqlBom;
import com.ruoyi.bom.domain.TqlDishBom;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 成本卡制作Mapper接口
 * 
 * @author ruoyi
 * @date 2023-12-31
 */
public interface TqlBomMapper extends BaseMapper<TqlBom> {

    List<TqlBom> selectTqlBomById(Long id);

    List<TqlDishBom> selectTqlBomList(Map<String, String> params);

    int deleteBomById(Long id);

    int deleteTqlBomByIds(Long[] ids);

    void deleteBomByDishId(@Param("dishId") Long dishId);
}
